package com.suxin.builder;

import java.net.URI;

/**
 * @author Tang
 * @classname Route
 * @description [  ]
 * @date 2022/9/21 16:35
 */
public class Route {

    private String id;

    private URI uri;

    public Route(String id, URI uri) {
        this.id = id;
        this.uri = uri;
    }

    public static Builder Builder() {
        return new Builder();
    }

    private static class Builder extends AbstractBuilder<Builder> {

        // 扩展 方法


        public Builder() {
        }

        @Override
        public Builder getThis() {
            return this;
        }
    }

    public static void main(String[] args) {
        Route route = Route.Builder()
                .id("1")
                .uri(null)
                .builder();
        System.out.println(route);
    }

}
